﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dotUML.Core.Common
{
    /// <summary>
    /// dotUML error.
    /// </summary>
    class Error : IError
    {
        #region IError Members

        EErrorType _errorType = EErrorType.Unknown;
        string _errorMessage = string.Empty;

        /// <summary>
        /// Error type.
        /// </summary>
        public EErrorType ErrorType
        {
            get
            {
                return _errorType;
            }
            set
            {
                _errorType = value;
            }
        }

        /// <summary>
        /// Text message, which describes the error.
        /// </summary>
        public string ErrorMessage
        {
            get
            {
                return _errorMessage;
            }
            set
            {
                _errorMessage = value;
            }
        }

        #endregion
    }
}
